<%@page import="aex.domain.ArticleCategory"%>
<%@page import="aex.domain.Article"%>
<%@page import="aex.service.ShowViewService"%>
<%@page import="aex.util.SSHUtil"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="aex.domain.Puser"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
WebApplicationContext ac = SSHUtil.getApplication(request);
ShowViewService svService = (ShowViewService) ac.getBean(ShowViewService.SERVICE_NAME);
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="keywords" content="${webKeyWord}">
	<meta name="description" content="${webDescription}" />
	<title> ${webTitle} </title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
  	
	<link rel="stylesheet" type="text/css" href="expandStyle/aex_userPage.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/index.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/article.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/users.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/medicine_list.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/group_articles.css" />
	
	<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.9.1/jquery.min.js"></script>
	</head>
  <body>
    
    <!--导航栏-->
    
    <%
    	Puser user=(Puser)request.getSession().getAttribute("user");
    	if(user==null){
    		%>
    			<jsp:include page="/systemPage/headNavVisitor1.jsp"></jsp:include>		
    		<%
    	}else{
    		%>
				<jsp:include page="/systemPage/headNavVisitor2.jsp"></jsp:include>
    		<%
    	}
    %>
	
	
	
	
  <!--主要内容-->
  <div class="container">
      <div class="container_left">
      <!--当前位置-->
         <div id="place_here">
            当前位置 > <a href="index.html">广场</a> > <a href="#">${category.acName}</a>
         </div>
       <div class="con1_tittle con1_tittle1">
                         <div style="width:190px;">药物名称</div>
                         <div>疗效</div>
                         <div>安全度</div>
                         <div>性价比</div>
                         <div>关注度</div>
                     </div>
                     
                     <c:forEach var="medicines" items="${category.medicineses}" varStatus="status">  
					
						<c:if test="${status.index<6 }">
						<div class="con1_tittle">
                         <div style="width:190px;"><a href="visitor/visitor_medicine.do?id=${medicines.meId}">${medicines.meName}</a></div>
                        
                         <div>
                           <ul>
                           <c:forEach var="i" begin="1" end="5" step="1">
                           		<c:if test="${i<= medicines.meEffect}">
                           			<li class="color_shuye"></li>
                           		</c:if>
                           		<c:if test="${i>medicines.meEffect}">
                           			 <li class='shuye'></li>
                           		</c:if>
							</c:forEach>
                           </ul>
                         </div>
                         
                         <div>
                           <ul>
                           <c:forEach var="i" begin="1" end="5" step="1">
                           		<c:if test="${i<= medicines.meSafety}">
                           			<li class="color_dunpai"></li>
                           		</c:if>
                           		<c:if test="${i>medicines.meSafety}">
                           			 <li class='dunpai'></li>
                           		</c:if>
							</c:forEach>
                           </ul>
                         </div>
                         
                         <div>
                           <ul>
                           <c:forEach var="i" begin="1" end="5" step="1">
                           		<c:if test="${i<= medicines.mePrice}">
                           			<li class="color_luoquan"></li>
                           		</c:if>
                           		<c:if test="${i>medicines.mePrice}">
                           			 <li class='luoquan'></li>
                           		</c:if>
							</c:forEach>
                           </ul>
                         </div>
                         
                         <div>${medicines.meAttention }</div>
                     </div> 
						</c:if>
					</c:forEach>  
					
                    </div>
  	 <!-- 侧边栏 -->
  	 <jsp:include page="/systemPage/cbl1.jsp"></jsp:include>
  	 
  </div>
	
    <!--网站底部-->
	<jsp:include page="/systemPage/footerVisitor.jsp"></jsp:include>
  </body>
</html>
